<!DOCTYPE html>

<html lang="${lang}">
    <head>
        <title>#{get 'title' /}</title>
        <meta charset="${_response_encoding}" />
        <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/crud.css'}" />
    </head>
    <body id="crud">

        <div id="crudHeader">
            <h1><a href="@{CRUD.index()}">#{get 'title' /}</a></h1>
        </div>
#{if flash.success}
<div class="crudFlash flashSuccess">
    ${flash.success}
</div>
#{/if}
#{if flash.error || error}
   <div class="crudFlash flashError">
       ${error ?: flash.error}
   </div>
#{/if}
<div id="crudContent">
#{doLayout /}
</div>

        <div id="crudFooter">
            .. <a href="#">..</a>
        </div>

    </body>
</html>
